package com.example.demo.web;

import com.example.demo.mapper.BrandMapper;
import com.example.demo.pojo.TbBrand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by crowndint on 2018/12/16.
 */
@RestController
@RequestMapping("brand")
public class BrandController {

    @Autowired
    private BrandMapper brandMapper;

    @RequestMapping("findAll")
    public List<TbBrand> findAll() {

        System.out.println("findAll");
        return brandMapper.findAll();
    }

}
